package com.redsoft.spirit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.redsoft.spirit.dao.BaseRepositoryFactoryBean;
import com.redsoft.spirit.entity.JwtPatternUrl;
import com.redsoft.spirit.entity.JwtProperty;

//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableFeignClients
//@EnableTransactionManagement//启用事务
//@EnableJpaRepositories(basePackages = {"com.redsoft"}, repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)//指定自己的工厂类
//@PropertySource("classpath:/config/jwt.properties")
//@EnableConfigurationProperties({JwtProperty.class, JwtPatternUrl.class})  //加载自定义的properties解析类
//public class EIPApplication {
//
//	public static void main(String[] args) throws InterruptedException {
//		ApplicationContext ctx = SpringApplication.run(EIPApplication.class, args);
//	}
//}
